package com.iversonx.facade.example_1.remote.impl;

import com.iversonx.facade.example_1.remote.LogisticsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 *
 **/
@Service
public class LogisticsServiceImpl implements LogisticsService {
    private final Logger logger = LoggerFactory.getLogger(LogisticsServiceImpl.class);
    
    @Override
    public void shipProducts(String productName, String shippingAddress) {
        String out = String.format(
                "Congratulations your product %s has been shipped at the following address: %s.",
                productName, shippingAddress);
        logger.info(out);
    }
}
